package com.springdemo.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

public enum  EnumTest implements IEnum {

    DIANXIN("1","电信");

    private String name;
    // 季节特征
    private String desc;
    EnumTest(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.name;
    }

    @JsonValue
    public String getDesc() {
        return desc;
    }
}
